package com.fancy.learncenter.net;

import okhttp3.ResponseBody;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Hyy on 2016/9/29.
 */
public interface ApiService {
    @POST("check/testRetrofit.json")
    Observable<Response<ResponseBody>> testRetrofit(@Header("header") String header, @Query("body") String body);

    @GET("check/test.json")
    Observable<Response<ResponseBody>> test(@Query("header") String header);
}
